<template>
	<div class="count-sales">
		<div class="card">
			<div class="card__header">
				<span class="label">总设备数</span> 
			</div>

			<div class="card__container">
				<cl-number :value="data.device" class="num" /> 
			</div>


		</div>
	</div>
</template>

<script lang="ts" setup>
import { BottomRight, TopRight } from '@element-plus/icons-vue';
import { random } from 'lodash-es';
import { onMounted, ref } from 'vue';

const rate = ref(0);
const num = ref(0);

onMounted(() => {
	rate.value = Math.random() * 30 + 30;
	num.value = random(10000000);
});

const props = defineProps({
	data: {
		type: Object,
		default: {}
	}
});

console.log('propspropspropsprops',props?.data);


</script>

<style lang="scss" scoped>
.count-effect {
	.cop {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;

		li {
			display: flex;
			list-style: none;
			flex: 1;

			.fall,
			.rise {
				display: flex;
				align-items: center;
				margin-left: 10px;
			}

			.fall {
				color: var(--el-color-success);
			}

			.rise {
				color: var(--el-color-danger);
			}
		}
	}
}
</style>
